package com.platform.service.impl;

import com.platform.dao.OrderDao;
import com.platform.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.platform.entity.OrderEntity;

/**
 * Service实现类
 *
 * @author zhurusen
 * @email 524227263@qq.com
 * @date 2018-06-03 15:04:03
 */
@Service("orderService")
public class OrderServiceImpl implements OrderService {
    @Autowired
    private OrderDao apiOrderDao;

    @Override
    public OrderEntity queryObject(Long id) {
        return apiOrderDao.queryObject(id);
    }

    @Override
    public List<OrderEntity> queryList(Map<String, Object> map) {
        return apiOrderDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return apiOrderDao.queryTotal(map);
    }

    @Override
    public int save(OrderEntity apiOrder) {
        return apiOrderDao.save(apiOrder);
    }

    @Override
    public int update(OrderEntity apiOrder) {
        return apiOrderDao.update(apiOrder);
    }

    @Override
    public int delete(Long id) {
        return apiOrderDao.delete(id);
    }

    @Override
    public int deleteBatch(Long[] ids) {
        return apiOrderDao.deleteBatch(ids);
    }
}
